<?php
$v_params = $this->getParams();
$o_nomeAB = $v_params['nome_abreviado'];
$listaGeral = $v_params[0];
$lm = (isset($_REQUEST["limite"])) ? $_REQUEST["limite"] : 10;
?>
<!DOCTYPE html>
<html lang="pt-br">
	<head>
		<base href="<?php echo SERVER_URL; ?>" />
		<meta charset="UTF-8">
		<title>TGV OS - Clientes</title>
        <link href="public_html/favicon.ico" rel="icon" type="image/x-icon" />
		<link rel="stylesheet" type="text/css" href="public_html/css/default.css" />
        <link rel="stylesheet" type="text/css" href="public_html/css/jquery-ui.css" />
        <link rel="stylesheet" type="text/css" href="public_html/css/forms.css" />
        <link rel="stylesheet" type="text/css" href="public_html/css/loader.css" />
        <script src="public_html/js/jquery.js" ></script>
        <script src="public_html/js/jquery-ui.js" ></script>
        <script src="public_html/js/modalBox.js" ></script>
        <script src="public_html/js/updateBD.js" ></script>
	</head>
	<body>
		<div id="boxPrincipal">
			<?php 
				$menuAtivo = "./configuracoes/geral";
				include('./views/template.php');
			?>
			<div id="conteudo">
				<!-- INICIO DA PARTE EDITAVEL DE CODIGOS -->
                <div id="menuSuperior">
                	<a href='#inserirUsuario' class='openBox btn_laranja' data-titulo="Novo usuário">Novo usuário</a>
                    <a href='#' style="display:none" class='btn_laranja'>Buscar usuário</a>
                </div>
                <hr class="clear">
				<div class="conteudoDinamico" align="center">
					<table class="lista" style="width:98%;">
                    	<thead>
						<tr>
							<th>Nome</th>
							<th>Login</th>
                            <th>Tipo</th>
							<th>&nbsp;</th>
						</tr>
                        </thead>
                        <tbody>
                        <?php foreach($listaGeral as $lc){ if($lc["nome_user"]){ 
						?>
						<tr>
							<td>
								<?php echo $lc["nome_user"] ?>
							</td>
                            <td>
								<?php echo $lc["login_user"] ?>
							</td>
                            <td>
								<?php echo $lc["nome_tipo_user"] ?>
							</td>
							<td>
								<a href="#mostrarUsuario-<?php echo $lc["id_user"] ?>" 
                                data-titulo="Usuário &rArr; <?php echo $lc["nome_user"] ?>" 
                                class="openBox btn_laranja" >Ver mais</a>
							</td>
						</tr>
                        <?php }else { echo '<td colspan="5">Nenhum usuário cadastrado na aplicação</td>'; } } ?>
                        </tbody>
                        <tfoot class="nav">
                            <tr>
                                <td colspan="5">
                                    <div class="pagination"></div>
                                    <div class="paginationTitle">Página</div>
                                    <div class="selectPerPage"></div>
                                    <div class="status"></div>
                                </td>
                            </tr>
                        </tfoot>
					</table>
				</div>
                <div id="modalBox">
                	<ul class="listaHorizontal">
                    	<li class="tituloModal destaqueTexto">Titulo da Janela</li>
                        <li><a href="#" class="closeBox destaqueTexto">X</a></li>
                    </ul>
                    <div id="conteudoModal">
     					<img src="public_html/imagens/load.gif" class="load" />
					</div>
                </div>
				<!-- FIM DA PARTE EDITAVEL DE CODIGOS -->
			</div>
		</div>
	</body>
</html>